const result = document.querySelector('#result')
result.addEventListener('mousemove',function (){
    const xhr = new XMLHttpRequest();
    //初始化 设置类型与URL
    xhr.open('POST','http://127.0.0.1:8000/server');
    //发送
    xhr.send();
    xhr.onreadystatechange = function (){
        if(xhr.readyState === 4){
            if(xhr.status >= 200 && xhr.status <300){
                //处理服务端返回结果
                result.innerHTML = xhr.response;
            }
        }
    }
})